/********************************************************************
Name: Table A6: Effect of Dem Sheriff on Number of Detentions
	per 1,000 Residents
Author: Dan Thompson
Date: August 2019
Notes:
********************************************************************/

* Set the working directory 
gl root = "$sanctuary_root"
gl root = "YOUR_WORKING_DIRECTORY"

* Bring in the panel data
use "$root/data/panel analysis data.dta", clear

* Column 1
reghdfe detained_sheriff_per1k_pop dem, a(county_id year) vce(clust county_id)

* Column 2
reghdfe detained_sheriff_per1k_pop dem, a(county_id i.year##i.region_id) vce(clust county_id)

* Column 3
reghdfe detained_sheriff_per1k_pop dem, a(county_id i.year##i.pop_quartile) vce(clust county_id)

* Column 4
reghdfe detained_sheriff_per1k_pop dem, a(county_id i.year##i.pop_quartile##i.region_id) vce(clust county_id)

* Column 5
reghdfe detained_sheriff_per1k_pop dem, a(year county_id##c.year) vce(clust county_id)

* Column 6
reghdfe detained_sheriff_per1k_pop dem, a(i.year##i.region_id county_id##c.year) vce(clust county_id)

* Column 7
reghdfe detained_sheriff_per1k_pop dem, a(i.year##i.pop_quartile county_id##c.year) vce(clust county_id)

* Column 8
reghdfe detained_sheriff_per1k_pop dem, a(i.year##i.pop_quartile##i.region_id county_id##c.year) vce(clust county_id)

